<?php

namespace LRP;

use LRP\Contract\TaskInterface;

/**
 * Class Task
 *
 * PHP Version > 7.0
 *
 * @package LRP
 * @author  Jon
 * @link    https://gitee.com/joncc/long-running-processor
 */
class Task implements TaskInterface
{
    const STATUS_OK = true;

    private $tube;
    private $handle;
    private $msg;

    /**
     * Task constructor.
     *
     * @param string $tube
     * @param string $handle
     * @param $msg
     */
    public function __construct(string $tube, string $handle, $msg)
    {
        $this->tube = $tube;
        $this->handle = $handle;
        $this->msg = $msg;
    }

    /**
     * @return string
     */
    public function getTube(): string
    {
        return $this->tube;
    }

    /**
     * @return string
     */
    public function getHandle(): string
    {
        return $this->handle;
    }

    /**
     * @return mixed
     */
    public function getMsg()
    {
        return $this->msg;
    }
}